package dynamic;

public class CompareGeneTest {
    public static void main(String[] args) {
        String[] genes = {"AGTGATG", "GTTAG"};

        //正确输入两个基因序列
        if (genes[0].length() > 0
                & genes[1].length() > 0
                & CompareGene.checkLetter(genes[0])
                & CompareGene.checkLetter(genes[1])) {

            CompareGene cg = new CompareGene(genes[0], genes[1]);

            System.out.println("基因序列：" + genes[0] + " 和 " + genes[1]);
            System.out.println("相似度：" + cg.getResult() + "分");
            System.out.println("匹配结果：");
            System.out.println(cg.getGeneResult1());
            System.out.println(cg.getGeneResult2());
        } else {
            System.out.println("请检查基因序列是否正确！");
        }
    }
}
